//
//  OJIssueViewController.h
//  openJira
//
//  Created by Vincent Demay on 30/04/10.
//  Copyright 2010 Goojet. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OJIssue.h"
#import "OJComment.h"


@interface OJIssueViewController : UIViewController<OJCommentListDelegate, OJCommentDelegate, TTPostControllerDelegate> {
	OJIssue *issue;
	OJCommentList * comments;
	
	// store scrollContentHeight
	// to update it when comments are available;
	int scrollContentHeight;
	
	//HMI
	UIScrollView *scrollView;
	UIView *contentView;
	TTPostController *post;
	TTActivityLabel *commentLoading;
}
@property (nonatomic, readonly) OJIssue *issue;
@property (nonatomic, readonly) OJCommentList *comments;

- (id) initWithIssue:(OJIssue*) _issue;

- (void) addAComment:(OJComment*) comment;

@end
